import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import permission from '@/utils/permission'

import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()
app.use(ElementPlus)
// app.directive('permission', permission)
app.use(pinia)
app.use(router)

app.mount('#app')